//
//  SDControllerManager.m
//  SBooks
//
//  Created by shansander on 2016/11/14.
//  Copyright © 2016年 shansander. All rights reserved.
//

#import "SDControllerManager.h"
#import "ReadPDFViewController.h"
NSString * const application_pdf = @"application/pdf";


NSString * const image_jpeg = @"image/jpeg";

NSString * const image_png = @"image/png";

NSString * const image_git = @"image/gif";

NSString * const text_plain = @"text/plain";


NSString * const viewController_readPdf = @"readpdfController";

NSString * const viewController_readImage = @"readImageController";
NSString * const viewController_readText = @"readtextcontroller";
NSString * const viewController_readgit = @"readgitstroybioard";

NSString * const viewController_define = @"contentcontrollerview";


@implementation SDControllerManager

+ (NSString *)GetViewControllerByWillShowContentType:(NSString *)type
{
    if ([type isEqualToString:application_pdf]) {
        return viewController_readPdf;
    }else if ([type isEqualToString:image_jpeg] || [type isEqualToString:image_png]){
        return viewController_readImage;
    }else if ([type isEqualToString:text_plain]){
        return viewController_readText;
    }else if ([type isEqualToString:image_git]){
        return viewController_readgit;
    }
    return viewController_define;
}


@end
